/* 
基础部分api的ajax的调用
*/

import { Axios } from './https.js'; // 引入ajax 

let basicurl = process.env.INSUREURL;


/* 建委  start */

//投保申请基础下拉框数据(查询参数配置)
export const GetBuildCommonSettings = params => {
    return Axios(params, basicurl + `CommonInfo/GetBuildCommonSettings`, "get");
}


//主险计算
export const ApplicationInsCalMainFee = params => {
    return Axios(params, basicurl + `ApplicationIns/CalMainFee`, "post");
}


//根据工程造价获取责任限额 
export const CommonInfoGetBuildCostConfig = params => {
    return Axios(params, basicurl + `CommonInfo/GetBuildCostConfig`, "get");
}


//获取投保说明 type不传取全部 
export const GetBuildApplicationExplain = params => {
    return Axios(params, basicurl + `CommonInfo/GetBuildApplicationExplain`, "get");
}


//投保新增  
export const ApplicationInsAddApplicationIns = params => {
    return Axios(params, basicurl + `ApplicationIns/AddApplicationIns`, "post");
}


//建委获取投保申请列表  
export const GetBuildApplicationInsList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetBuildApplicationInsList`, "get");
}

//获取投保申请单  
export const GetApplicationIns = params => {
    return Axios(params, basicurl + `ApplicationIns/GetApplicationIns`, "get");
}

//更新投保状态  
export const UpdateApplicationInsStatus = params => {
    return Axios(params, basicurl + `ApplicationIns/UpdateApplicationInsStatus`, "post");
}

//建委投保保费修改
export const ApplicationInsEditTotalFee = params => {
    return Axios(params, basicurl + `ApplicationIns/EditTotalFee`, "post");
}

//获取项目数据 （根据项目名称，是否在投保期，是否是投保企业获取项目列表以及项目和企业的对应关系）
export const GetProjectEntRelationByProjectName = params => {
    return Axios(params, basicurl + `ApplicationIns/GetProjectEntRelationByProjectName`, "get");
}

//通讯查询
export const CommunicationQuery = params => {
    return Axios(params, basicurl + `Communication/Query`, "get");
}


//获取投保单号/【投保申请对接】
export const PlatformSaveRequest = params => {
    return Axios(params, basicurl + `Communication/PlatformSaveRequest`, "post");
}

//获取保单号/【保单查询对接】
export const PolicyDetailQueryRequest = params => {
    return Axios(params, basicurl + `Communication/PolicyDetailQueryRequest`, "post");
}

//获取实收实付/实收实付查询
export const RealPayInfoQueryRequestVO = params => {
    return Axios(params, basicurl + `Communication/RealPayInfoQueryRequestVO`, "post");
}

//影像上传
export const Upload_imageAdd = params => {
    return Axios(params, basicurl + `Communication/Upload_imageAdd`, "post");
}



//理赔申请列表查询 
export const ApplicationClaimsQuery = params => {
    return Axios(params, basicurl + `ApplicationClaims/Query`, "post");
}


//理赔详情
export const ApplicationClaimsQueryDetail = params => {
    return Axios(params, basicurl + `ApplicationClaims/QueryDetail`, "get");
}


//理赔下拉框查询
export const GetClaimsInstypeList = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetClaimsInstypeList`, "get");
}


//批单列表查询 
export const EndorsementQuery = params => {
    return Axios(params, basicurl + `Endorsement/Query`, "post");
}

//批单详情查询
export const EndorsementQueryDetail = params => {
    return Axios(params, basicurl + `Endorsement/QueryDetail`, "get");
}

//批单申请类型
export const GetApprovalTypeList = params => {
    return Axios(params, basicurl + `Endorsement/GetApprovalTypeList`, "get");
}


//政府统计--区域统计
export const GetBuildAreaInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetBuildAreaInsurance`, "get");
}


// 政府统计-投保金额，数统计（包含总金额，总投保数）
export const GetBuildApplication = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetBuildApplication`, "get");
}


//理赔统计（包含总理赔金额，总理赔数）
export const GetBuildApplicationClaims = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetBuildApplicationClaims`, "get");
}


/* 建委  end */



/* 交委 start */

//投保申请基础下拉框数据(查询参数配置)
export const GetTraffictConfigParameter = params => {
    return Axios(params, basicurl + `CommonInfo/GetTraffictConfigParameter`, "get");
}

//交委附加险查询
export const GetTraffictAdditionalOptions = params => {
    return Axios(params, basicurl + `CommonInfo/GetTraffictAdditionalOptions`, "get");
}

//计算主险限额
export const GetMainRisk = params => {
    return Axios(params, basicurl + `ApplicationIns/GetMainRisk`, "post");
}


//计算附加险费用
export const GetRisks = params => {
    return Axios(params, basicurl + `ApplicationIns/GetRisks`, "post");
}

//附加险责任限额
export const GetAttachRisks = params => {
    return Axios(params, basicurl + `ApplicationIns/GetAttachRisks`, "post");
}


//交委获取投保申请列表
export const GetTraffictApplicationInsList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetTraffictApplicationInsList`, "get");
}

//交委修改责任限额
export const Editlimit = params => {
    return Axios(params, basicurl + `ApplicationIns/Editlimit`, "post");
}

//打印保单交委
export const ExportinsPDF = params => {
    return Axios(params, basicurl + `ApplicationIns/ExportinsPDF`, "get");
}

//获取第一标段主险的信息
export const GetTrafficoApplicationInsList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetTrafficoApplicationInsList`, "get");
}

//交委获取投保说明【特别约定】
export const GetTraffictExplain = params => {
    return Axios(params, basicurl + `CommonInfo/GetTraffictExplain`, "get");
}


// 交委获取投保申请列表核保 太保（二标段）
export const GetTraffictList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetTraffictList`, "get");
}

// 交委获取投保申请列表核保 人保（一标段）
export const GetTrafficoList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetTrafficoList`, "get");
}


//交委企业理赔申请列表查询 
export const GetTrafficEntApplicationClaimsList = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetTrafficEntApplicationClaimsList`, "get");
}


//交委理赔详情 
export const GetTrafficEntApplicationClaimsDetail = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetTrafficEntApplicationClaimsDetail`, "get");
}


//交委一保险公司列表查询
export const GetTrafficoInsApplicationClaimsList = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetTrafficoInsApplicationClaimsList`, "get");
}


//交委二保险公司列表查询
export const GetTraffictInsApplicationClaimsList = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetTraffictInsApplicationClaimsList`, "get");
}


//交委企业批单申请列表查询
export const GetTrafficEntEndorsementList = params => {
    return Axios(params, basicurl + `Endorsement/GetTrafficEntEndorsementList`, "get");
}


//交委批单详情
export const GetTrafficEntEndorsementDetail = params => {
    return Axios(params, basicurl + `Endorsement/GetTrafficEntEndorsementDetail`, "get");
}


//交委一标段保险公司批单列表查询
export const GetTrafficoInsEndorsementList = params => {
    return Axios(params, basicurl + `Endorsement/GetTrafficoInsEndorsementList`, "get");
}


//交委二标段保险公司批单列表查询
export const GetTraffictInsEndorsementList = params => {
    return Axios(params, basicurl + `Endorsement/GetTraffictInsEndorsementList`, "get");
}


//车辆列表查询
export const CarInfoQuery = params => {
    return Axios(params, basicurl + `CarInfo/Query`, "get");
}

//删除车辆信息
export const CarInfoDelete = params => {
    return Axios(params, basicurl + `CarInfo/Delete`, "post");
}

//新增或修改车辆信息
export const CarInfoAddOrUpdate = params => {
    return Axios(params, basicurl + `CarInfo/AddOrUpdate`, "post");
}

//导入车辆信息
export const CarInfoImportCarInfo = params => {
    return Axios(params, basicurl + `CarInfo/ImportCarInfo`, "post");
}


//交委一标段通讯管理列表查询  
export const GetTrafficoCommunication = params => {
    return Axios(params, basicurl + `InsuredSaveService/GetTrafficoCommunication`, "get");
}

//交委二标段通讯管理列表查询
export const GetTraffictCommunication = params => {
    return Axios(params, basicurl + `InsuredSaveService/GetTraffictCommunication`, "get");
}

//第二标段投保申请对接（二标段点击【调用】按钮）
export const UnderwritingRequest = params => {
    return Axios(params, basicurl + `InsuredSaveService/UnderwritingRequest`, "post");
}


//交委政府端首页统计   start
//投保金额，数统计（包含总金额，总投保数）
export const GetTrafficApplication = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetTrafficApplication`, "get");
}


//交委区域投保统计
export const GetTrafficAreaInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetTrafficAreaInsurance`, "get");
}


//交委行业数量、金额统计
export const GetTrafficInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetTrafficInsurance`, "get");
}




//交委理赔（行业理赔、总理赔额）
export const GetTrafficClaimsInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetTrafficClaimsInsurance`, "get");
}



//交委政府端首页统计   end

/* 交委 end */



/* 应急  start */
//应急投保申请基础下拉框数据(查询参数配置)
export const GetEmaConfigParameter = params => {
    return Axios(params, basicurl + `CommonInfo/GetEmaConfigParameter`, "get");
}

//获取特别约定数据
export const GetEmaExplain = params => {
    return Axios(params, basicurl + `CommonInfo/GetEmaExplain`, "get");
}

//获取附加险选项
export const GetEmaAdditionalOptions = params => {
    return Axios(params, basicurl + `CommonInfo/GetEmaAdditionalOptions`, "get");
}

//获取责任限额
export const CommonInfoGetIDCQueryQuota = params => {
    return Axios(params, basicurl + `CommonInfo/GetIDCQueryQuota`, "get");
}

//应急理赔列表查询
export const GetEmaClaimsList = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetEmaClaimsList`, "get");
}

//应急理赔详情查询
export const GetEmaClaimsDetail = params => {
    return Axios(params, basicurl + `ApplicationClaims/GetEmaClaimsDetail`, "get");
}

//应急批单列表查询  
export const GetEmaApprovalList = params => {
    return Axios(params, basicurl + `Endorsement/GetEmaApprovalList`, "get");
}

//应急批单详情查询 
export const GetEmaAapprovalDetail = params => {
    return Axios(params, basicurl + `Endorsement/GetEmaAapprovalDetail`, "get");
}

//应急组织机构查询
export const GetEmaOrgType = params => {
    return Axios(params, basicurl + `ApplicationIns/GetEmaOrgType`, "get");
}


//应急投保申请列表查询
export const GetEmaApplicationInsList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetEmaApplicationInsList`, "get");
}

// 录入保单号
export const AddPolicyNo = params => {
    return Axios(params, basicurl + `ApplicationIns/AddPolicyNo`, "post");
}

//编辑保单号
export const EditPolicyNo = params => {
    return Axios(params, basicurl + `ApplicationIns/EditPolicyNo`, "post");
}

// 保费确认  
export const Payment = params => {
    return Axios(params, basicurl + `ApplicationIns/Payment`, "post");
}

//发票邮寄查询
export const GetInsReceiptMail = params => {
    return Axios(params, basicurl + `ApplicationIns/GetInsReceiptMail`, "get");
}

//发票邮寄新增|编辑
export const EditReceiptOrMail = params => {
    return Axios(params, basicurl + `ApplicationIns/EditReceiptOrMail`, "post");
}


//获取续保配置
export const GetEmaRenewalConfig = params => {
    return Axios(params, basicurl + `ApplicationIns/GetEmaRenewalConfig`, "get");
}

//事故预防查询企业（应急）
export const GetEntList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetEntList`, "get");
}


//应急理赔、批单、财政补贴码表查询
export const GetEmaClockList = params => {
    return Axios(params, basicurl + `CommonInfo/GetEmaClockList`, "get");
}

//应急未投保企业清单查询
export const GetUninsuredEntList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetUninsuredEntList`, "get");
}


//保险公司 评估报告查询
export const GetAssessReportList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetAssessReportList`, "get");
}

//保险公司  评估报告新增/编辑
export const EditAssessReport = params => {
    return Axios(params, basicurl + `ApplicationIns/EditAssessReport`, "post");
}



//财政补贴申请列表查询
export const GetEmaSubsidyApplyList = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/GetEmaSubsidyApplyList`, "get");
}

//应急财政补贴新增|编辑
export const AddEmaSubsidyPetition = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/AddEmaSubsidyPetition`, "post");
}


//获取财政补贴投保明细
export const GetEmaSubsidyApplyDetail = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/GetEmaSubsidyApplyDetail`, "get");
}

//财政补贴列表查询
export const GetEmaSubsidyList = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/GetEmaSubsidyList`, "get");
}

//修改财政补贴状态
export const ServiceFiscalSubsidyEditstatus = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/Editstatus`, "post");
}

//获取财政补贴详情
export const GetEmaSubsidyDetail = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/GetEmaSubsidyDetail`, "get");
}

//企业端财政补贴下载功能
export const Export2PDF = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/Export2PDF`, "get");
}

// 企业端财政补贴上传功能
export const EditUpload = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/EditUpload`, "post");
}

//财政补助项目企业财政信息汇总
export const ExportPetition = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/ExportPetition`, "get");
}

//财政补助项目申请企业财政信息汇总
export const ExportentPetition = params => {
    return Axios(params, basicurl + `ServiceFiscalSubsidy/ExportentPetition`, "get");
}


//保费分成汇总统计查询
export const GetDistributeStatistical = params => {
    return Axios(params, basicurl + `ApplicationIns/GetDistributeStatistical`, "get");
}



//保费分成汇总总金额统计
export const GetTotalDistributeStatistical = params => {
    return Axios(params, basicurl + `ApplicationIns/GetTotalDistributeStatistical`, "get");
}


//应急通讯查询
export const GetemaCommunication = params => {
    return Axios(params, basicurl + `Comemergency/GetemaCommunication`, "get");
}


//获取投保单号应急/【投保申请对接】
export const PlatformSaveRequestYingJi = params => {
    return Axios(params, basicurl + `Comemergency/PlatformSaveRequest`, "post");
}

//获取保单号应急/【保单查询对接】
export const PolicyDetailQueryRequestYingJi = params => {
    return Axios(params, basicurl + `Comemergency/PolicyDetailQueryRequest`, "post");
}

//获取实收实付应急/实收实付查询
export const RealPayInfoQueryRequestVOYingJi = params => {
    return Axios(params, basicurl + `Comemergency/RealPayInfoQueryRequestVO`, "post");
}

//影像上传应急
export const Upload_imageAddYingJi = params => {
    return Axios(params, basicurl + `Comemergency/Upload_imageAdd`, "post");
}


//到期续保提醒
export const GetReminderList = params => {
    return Axios(params, basicurl + `ApplicationIns/GetReminderList`, "get");
}


//应急政府首页统计 start

//行业投保统计（包含总金额，总投保数）
export const GetInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetInsurance`, "get");
}

//区域投保统计
export const GetAreaInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetAreaInsurance`, "get");
}

//理赔统计（包含总金额，投保数以及各行业情况）
export const GetClaimsInsurance = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetClaimsInsurance`, "get");
}

//财政补贴总额统计
export const GetSubsidytotalnum = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetSubsidytotalnum`, "get");
}

//财政补贴月度总额统计
export const GetSubsidyMonthnum = params => {
    return Axios(params, basicurl + `InsuranceStatistics/GetSubsidyMonthnum`, "get");
}



//应急政府首页统计 end


/* 应急  end */


/* 鼓励形行业 start */
//获取鼓励型行业的参数配置
export const GetEncourageConfigParameter = params => {
    return Axios(params, basicurl + `CommonInfo/GetEncourageConfigParameter`, "get");
}


//获取鼓励型行业的责任限额
export const GetEDLQueryQuota = params => {
        return Axios(params, basicurl + `CommonInfo/GetEDLQueryQuota`, "get");
    }
    /* 鼓励形行业 end */